package org.dromara.xyyw.service;

import org.dromara.xyyw.domain.XyywShopProductCommentLike;
import org.dromara.xyyw.domain.bo.XyywShopProductCommentLikeBo;
import org.dromara.xyyw.domain.query.XyywShopProductCommentLikeQuery;
import org.dromara.xyyw.domain.vo.XyywShopProductCommentLikeVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 讨论点赞Service接口
 *
 * @author yf
 * @date 2024-05-29
 */
public interface IXyywShopProductCommentLikeService extends IService<XyywShopProductCommentLike> {

    /**
     * 查询讨论点赞
     *
     * @param discussionLikeId 主键
     * @return XyywShopProductCommentLikeVo
     */
    XyywShopProductCommentLikeVo queryById(Integer discussionLikeId);

    /**
     * 查询讨论点赞列表
     *
     * @param query 查询对象
     * @return XyywShopProductCommentLikeVo
     */
    TableDataInfo<XyywShopProductCommentLikeVo> queryPageList(XyywShopProductCommentLikeQuery query);

    /**
     * 查询讨论点赞列表
     *
     * @param query 查询对象
     * @return XyywShopProductCommentLikeVo
     */
    List<XyywShopProductCommentLikeVo> queryList(XyywShopProductCommentLikeQuery query);

    /**
     * 新增讨论点赞
     *
     * @param bo 讨论点赞新增业务对象
     * @return Boolean
     */
    Boolean insertByBo(XyywShopProductCommentLikeBo bo);

    /**
     * 修改讨论点赞
     *
     * @param bo 讨论点赞编辑业务对象
     * @return Boolean
     */
    Boolean updateByBo(XyywShopProductCommentLikeBo bo);

    /**
     * 校验并批量删除讨论点赞信息
     *
     * @param ids 主键集合
     * @return Boolean
     */
    Boolean deleteWithValidByIds(Collection<Integer> ids);
}
